<?php 
/*************************************************************************************
 * doeditpoint.php
 * -----------
 * phpGMapTrips 
 * 
 * This php application allows you to easily record your travel destinations 
 * and display them with Google maps.
 * 
 * Author: Stephane Coste (lescoste@gmail.com)
 * Copyright: (c) 2006 Stephane Coste (http://lescoste.net/)
 * Release Version: 0.1
 * CVS Revision Version: $Revision: 1.9 $
 * Date Started: 2006/02/19
 * Last Modified: $Date: 2007/03/08 20:44:29 $
 *
 *************************************************************************************
 *
 *     This file is part of phpGMapTrips.
 *
 *   phpGMapTrips is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   phpGMapTrips is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with phpGMapTrips; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 ************************************************************************************/
?>
<?PHP
include_once("secure.php");
/*
this page updates or create a point in the xml file
*/

$editName = $_POST["editName"];
$editNewname = $_POST["editNewname"];
$editLat = $_POST["editLat"];
$editLng = $_POST["editLng"];
$editUrl = $_POST["editUrl"];
$editPhotoUrl = $_POST["editPhotoUrl"];
$editTags = $_POST["editTags"];
$showpoint = $_POST["showpoint"];
$showtrip = $_POST["showtrip"];

$file = urldecode($_GET["file"]);
if (empty($f_files)) {
   $file = $_POST["file"];
}

$editMoreinfo = array();
// stocke les inputs dans l'ordre du tableau index
foreach ($moreinfoNames as $name) { 
    $editMoreinfo[$name] = $_POST[$name];
}
?>
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<style>
body {
	background:white;
}
</style>
</head>
<body>
<?php 

include_once("doeditpoint_inc.php");

//echo '<br/> '.$lang_number_places.' ='.count($pointarray);
if ($noproblemo) {
?>
<script>
parent.callTrip('<?php echo $file; ?>', '<?php echo $showtrip; ?>', '<?php echo $editNewname; ?>');
</script>
<?php } ?>
<br/>
<a href="javascript:void(0);" onclick="parent.callTrip('<?php echo $file; ?>', '<?php echo $showtrip; ?>', '<?php echo $editNewname; ?>');">Back</a>
</body>
</html>
